package com.ceba.test.webservice.entity;

import java.util.ArrayList;
import java.util.List;

public class StampRuleMultiPages extends StampRuleAbstract {

    /**
     * 图章所在页面页码
     * <p>
     * 从 1起
     */
    private List<Integer> pages;

    /**
     * 图章左上角X坐标
     * <p>
     * 单位毫米mm
     */
    private double tlx;
    /**
     * 图章左上角X坐标
     * <p>
     * 单位毫米mm
     */
    private double tly;

    /**
     * 图章宽度
     * <p>
     * 单位毫米mm
     */
    private double width;
    /**
     * 图章高度
     * <p>
     * 单位毫米mm
     */
    private double height;

    public StampRuleMultiPages() {}

    public StampRuleMultiPages(int page, double tlx, double tly, double width, double height, String stampImgPath, boolean isSignature) {
        super(stampImgPath, isSignature, 1);
        pages = new ArrayList<>(1);
        pages.add(page);
        this.tlx = tlx;
        this.tly = tly;
        this.width = width;
        this.height = height;
    }

    public StampRuleMultiPages(List<Integer> pages, double tlx, double tly, double width, double height, String stampImgPath, boolean isSignature) {
        super(stampImgPath, isSignature, 1);
        this.pages = pages;
        this.tlx = tlx;
        this.tly = tly;
        this.width = width;
        this.height = height;
    }

    public List<Integer> getPages() {
        return pages;
    }

    public void setPages(List<Integer> pages) {
        this.pages = pages;
    }

    public double getTlx() {
        return tlx;
    }

    public void setTlx(double tlx) {
        this.tlx = tlx;
    }

    public double getTly() {
        return tly;
    }

    public void setTly(double tly) {
        this.tly = tly;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
}
